home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
action.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
1KB
|
69 lines
#ifndef __ACTION
#define __ACTION
struct action
{
int act;
int x,y,z; // parameters used ad.lib.
};
struct Action
{
int act;
int x,y,z; // parameters used ad.lib.
Action() : act(0),x(0),y(0),z(0){}
};
// common action constants ( local constants could be defined elsewhere)
// values 0 - 100 are reserved
#define AC_NULL 0
#define AC_CANCEL 1
#define AC_ACCEPT 2
#define AC_OK AC_ACCEPT
#define AC_HELP 3
#define AC_SELECT 4
#define AC_LEFT 5
#define AC_RIGHT 6
#define AC_UP 7
#define AC_DOWN 8
#define AC_UNDO 9
#define AC_SET 10
#define AC_ERASE 11
#define AC_YES 12
#define AC_NO 13
#define AC_DEFAULT 14
#define AC_QUIT 15
#define AC_ERROR 16
#define AC_CLOSE 17
#define AC_NEXT 18
#define AC_PREV 19
#define AC_PG_UP 20
#define AC_PG_DN 21
#define AC_HOME 22
#define AC_END 23
#define AC_CTRL_PG_UP 24
#define AC_JMP 25
#define AC_REDRAW 26
#define AC_MOVE 27
#define AC_RESIZE 28
#define AC_CTRL_PG_DN 29
#define AC_EDIT 30
#define AC_FIND_FIRST 31
#define AC_FIND_NEXT 32
#define AC_GLOBAL_ERASE 33
// about 10 more actions could be defined there !!
//action default_key2action(int key /* from event */);
// could be VERY useful procedure
/*
virtual functions in some basical class(es)
action get_action();
void handle(action act); or action handle(action act,...); ?
*/
#endif __ACTION